<%@ page import="framework.util.Util" %>

<html>
    <body>
		<%java.util.Date date =  new java.util.Date();%>
		<form><textarea rows="30" cols="120" wrap="off">
getCurrentDay() = <%=Util.getCurrentDay()%>
getCurrentMonth() = <%=Util.getCurrentMonth()%>
getCurrentYear() = <%=Util.getCurrentYear()%>

formatDateToString(<%=Util.DATEFORMAT_FRENCH%>, <%=date%>) = <%=Util.formatDateToString(Util.DATEFORMAT_FRENCH, date)%>
formatDateToString(<%=Util.DATEFORMAT_FRENCH_TIME%>, <%=date%>) = <%=Util.formatDateToString(Util.DATEFORMAT_FRENCH_TIME, date)%>
formatDateToString(<%=Util.DATEFORMAT_FRENCH_SHORTYEAR%>, <%=date%>) = <%=Util.formatDateToString(Util.DATEFORMAT_FRENCH_SHORTYEAR, date)%>
formatDateToString(<%=Util.DATEFORMAT_FRENCH_TIME_SHORTYEAR%>, <%=date%>) = <%=Util.formatDateToString(Util.DATEFORMAT_FRENCH_TIME_SHORTYEAR, date)%>
formatDateToString(<%=Util.DATEFORMAT_FRENCH_ALPHA%>, <%=date%>) = <%=Util.formatDateToString(Util.DATEFORMAT_FRENCH_ALPHA, date)%>
formatDateToString(<%=Util.DATEFORMAT_FRENCH_SHORTALPHA%>, <%=date%>) = <%=Util.formatDateToString(Util.DATEFORMAT_FRENCH_SHORTALPHA, date)%>
formatDateToString(<%=Util.DATEFORMAT_TIME%>, <%=date%>) = <%=Util.formatDateToString(Util.DATEFORMAT_TIME, date)%>
formatDateToString(<%=Util.DATEFORMAT_ENGLISH%>, <%=date%>) = <%=Util.formatDateToString(Util.DATEFORMAT_ENGLISH, date)%>
formatDateToString(x, <%=date%>) = <%=Util.formatDateToString("x", date)%>
formatDateToString(<%=Util.DATEFORMAT_FRENCH%>, null) = <%=Util.formatDateToString(Util.DATEFORMAT_FRENCH, null)%>
formatDateToString(null, <%=date%>) = <%=Util.formatDateToString(null, date)%>

convertStringToDate(<%=Util.DATEFORMAT_FRENCH%>, <%=Util.formatDateToString(Util.DATEFORMAT_FRENCH, date)%>) = <%=Util.convertStringToDate(Util.DATEFORMAT_FRENCH, Util.formatDateToString(Util.DATEFORMAT_FRENCH, date))%>
convertStringToDate(<%=Util.DATEFORMAT_FRENCH_TIME%>, <%=Util.formatDateToString(Util.DATEFORMAT_FRENCH_TIME, date)%>) = <%=Util.convertStringToDate(Util.DATEFORMAT_FRENCH_TIME, Util.formatDateToString(Util.DATEFORMAT_FRENCH_TIME, date))%>
convertStringToDate(<%=Util.DATEFORMAT_FRENCH_SHORTYEAR%>, <%=Util.formatDateToString(Util.DATEFORMAT_FRENCH_SHORTYEAR, date)%>) = <%=Util.convertStringToDate(Util.DATEFORMAT_FRENCH_SHORTYEAR, Util.formatDateToString(Util.DATEFORMAT_FRENCH_SHORTYEAR, date))%>
convertStringToDate(<%=Util.DATEFORMAT_FRENCH_TIME_SHORTYEAR%>, <%=Util.formatDateToString(Util.DATEFORMAT_FRENCH_TIME_SHORTYEAR, date)%>) = <%=Util.convertStringToDate(Util.DATEFORMAT_FRENCH_TIME_SHORTYEAR, Util.formatDateToString(Util.DATEFORMAT_FRENCH_TIME_SHORTYEAR, date))%>
convertStringToDate(<%=Util.DATEFORMAT_FRENCH_ALPHA%>, <%=Util.formatDateToString(Util.DATEFORMAT_FRENCH_ALPHA, date)%>) = <%=Util.convertStringToDate(Util.DATEFORMAT_FRENCH_ALPHA, Util.formatDateToString(Util.DATEFORMAT_FRENCH_ALPHA, date))%>
convertStringToDate(<%=Util.DATEFORMAT_FRENCH_SHORTALPHA%>, <%=Util.formatDateToString(Util.DATEFORMAT_FRENCH_SHORTALPHA, date)%>) = <%=Util.convertStringToDate(Util.DATEFORMAT_FRENCH_SHORTALPHA, Util.formatDateToString(Util.DATEFORMAT_FRENCH_SHORTALPHA, date))%>
convertStringToDate(<%=Util.DATEFORMAT_TIME%>, <%=Util.formatDateToString(Util.DATEFORMAT_TIME, date)%>) = <%=Util.convertStringToDate(Util.DATEFORMAT_TIME, Util.formatDateToString(Util.DATEFORMAT_TIME, date))%>
convertStringToDate(<%=Util.DATEFORMAT_ENGLISH%>, <%=Util.formatDateToString(Util.DATEFORMAT_ENGLISH, date)%>) = <%=Util.convertStringToDate(Util.DATEFORMAT_ENGLISH, Util.formatDateToString(Util.DATEFORMAT_ENGLISH, date))%>
convertStringToDate(<%=Util.DATEFORMAT_FRENCH%>, x) = <%=Util.convertStringToDate(Util.DATEFORMAT_FRENCH, "x")%>
convertStringToDate(x, <%=Util.formatDateToString(Util.DATEFORMAT_FRENCH, date)%>) = <%=Util.convertStringToDate("x", Util.formatDateToString(Util.DATEFORMAT_FRENCH, date))%>
convertStringToDate(<%=Util.DATEFORMAT_FRENCH%>, null) = <%=Util.convertStringToDate(Util.DATEFORMAT_FRENCH, null)%>
convertStringToDate(null, <%=Util.formatDateToString(Util.DATEFORMAT_FRENCH, date)%>) = <%=Util.convertStringToDate(null, Util.formatDateToString(Util.DATEFORMAT_FRENCH, date))%>

<%for (int i=0;i<=12;i++) {%>getMonthHtmlLabel(<%=i%>) = <%=Util.getMonthHtmlLabel(i)%>
<%}%>
protectStringSQL("azerty") = <%=Util.protectStringSQL("azerty")%>
protectStringSQL("aze'rty'") = <%=Util.protectStringSQL("aze'rty'")%>
protectStringSQL("null") = <%=Util.protectStringSQL("null")%>
protectStringSQL(null) = <%=Util.protectStringSQL(null)%>

truncateString("azerty", 5) = <%=Util.truncateString("azerty", 5)%>
truncateString("azerty", 7) = <%=Util.truncateString("azerty", 7)%>
truncateString("azerty", 0) = <%=Util.truncateString("azerty", 0)%>
truncateString("azerty", -1) = <%=Util.truncateString("azerty", -1)%>

convertReturnToBR("\nazerty\nazerty\n") = <%=Util.convertReturnToBR("\nazerty\nazerty\n")%>
convertReturnToBR(null) = <%=Util.convertReturnToBR(null)%>

convertStringToSpecialString("\'" + "\"" + "\\" + "\t" + "\b" + "\r" + "\f" + "\n") = <%=Util.convertStringToSpecialString("\'" + "\"" + "\\" + "\t" + "\b" + "\r" + "\f" + "\n")%>
convertStringToSpecialString(null) = <%=Util.convertStringToSpecialString(null)%>

convertCommaToPoint("123,456...") = <%=Util.convertCommaToPoint("123,456...")%>
convertCommaToPoint(null) = <%=Util.convertCommaToPoint(null)%>

convertStringToInt("123") = <%=Util.convertStringToInt("123")%>
convertStringToInt("123.456") = <%=Util.convertStringToInt("123.456")%>
convertStringToInt("") = <%=Util.convertStringToInt("")%>
convertStringToInt(null) = <%=Util.convertStringToInt(null)%>

formatFloatToString(12345.6789, 2, true, false) = <%=Util.formatFloatToString(new Float("12345.6789"), 2, true, false)%>
formatFloatToString(12345.6789, 2, false, true) = <%=Util.formatFloatToString(new Float("12345.6789"), 2, false, true)%>
formatFloatToString(12345.6789, 5, false, true) = <%=Util.formatFloatToString(new Float("12345.6789"), 5, false, true)%>
formatFloatToString(12345.6789, 0, true, true) = <%=Util.formatFloatToString(new Float("12345.6789"), 0, true, true)%>
formatFloatToString(12345.6789, -1, false, true) = <%=Util.formatFloatToString(new Float("12345.6789"), -1, false, true)%>
formatFloatToString(null, 2, false, true) = <%=Util.formatFloatToString(null, 2, false, true)%>
		</textarea></form>
	</body>
</html>